package com.csr.csrcheck.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;

import java.util.Date;
import java.util.Objects;

public class Important_notification {
    private int id;

    private String title;

    private String content;

    private int product_id;

    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date release_time;

    private String product_name;

    private String product_t_name;

    public String getProduct_name() {
        return this.product_name;
    }

    public void setProduct_name(String product_name) {
        this.product_name = product_name;
    }

    public String getProduct_t_name() {
        return this.product_t_name;
    }

    public void setProduct_t_name(String product_t_name) {
        this.product_t_name = product_t_name;
    }

    public int getId() {
        return this.id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getTitle() {
        return this.title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getContent() {
        return this.content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public int getProduct_id() {
        return this.product_id;
    }

    public void setProduct_id(int product_id) {
        this.product_id = product_id;
    }

    public Date getRelease_time() {
        return this.release_time;
    }

    public void setRelease_time(Date release_time) {
        this.release_time = release_time;
    }

    public boolean equals(Object o) {
        if (this == o)
            return true;
        if (!(o instanceof Important_notification))
            return false;
        com.csr.csrcheck.pojo.Important_notification that = (Important_notification)o;
        return (this.id == that.id);
    }

    public int hashCode() {
        return Objects.hash(new Object[] { Integer.valueOf(this.id) });
    }

    public String toString() {
        return "important_notification{id=" + this.id + ", title='" + this.title + '\'' + ", content='" + this.content + '\'' + ", product_id=" + this.product_id + ", release_time=" + this.release_time + '}';
    }
}
